
<TABLE BORDER="1">
  <CAPTION>Dispacher</CAPTION>
		<TR>
			<TD><h1><%= link_to "Retour", :controller => :admin %></h1></TD>
			<TD><h1><%= link_to "Nouvelle Réservation", :action => :new %></h1></TD>
			<TD><h1></h1></TD>
			<TD><h1></h1></TD>
			<TD><h1><%= link_to "Statistique" %></h1></TD>
  	</TR>
		<TR>
			<TD><h1><%= link_to "Prévisionnel", clients_path %></h1></TD>
			<TD><h1><%= link_to "Inventaire" %></h1></TD>
			<TD><h1><%= link_to "Inventaire des chambres" %></h1></TD>
			<TD><h1><%= link_to "Tarification" %></h1></TD>
			<TD><h1><%= link_to "Facturation" %></h1></TD>
  	</TR>
		<TR>
			<TD><h1><%= link_to "Rapports" %></h1></TD>
			<TD><h1><%= link_to "Taux de change" %></h1></TD>
			<TD><h1><%= link_to "Salles M.A.D" %></h1></TD>
			<TD><h1><%= link_to "Accessoire" %></h1></TD>
			<TD><h1><%= link_to "R.A.C.K" %></h1></TD>
  	</TR>
</TABLE>
<br>
<br>
<h1>Rechercher une réservation par l'ID du client</h1>
<% form_tag reservations_path, :method => :get do %>
<p>
    <%= text_field_tag :search, params[:search] %>
    <%= submit_tag "Chercher" %>
</p>
<% end %>
<br>
<br>
<h1>Listing reservations</h1>

<table>
  <tr>
		<th>ID de la Résa</th>
    <th>ID du client</th>
    <th>Date debut</th>
    <th>Date fin</th>
    <th>Nombres personnes</th>
		<th>Résa créer le :</th>
		<th>Résa mis à jour le :</th>
  </tr>

<% for reservation in @reservations %>
  <tr>
		<td><%=h reservation.id %></td>
    <td><%=h reservation.client_id %></td>
    <td><%=h reservation.date_debut %></td>
    <td><%=h reservation.date_fin %></td>
    <td><%=h reservation.nb_personnes %></td>
		<td><%=h reservation.created_at %></td>
		<td><%=h reservation.updated_at %></td>
    <td><%= link_to 'Show', reservation %></td>
    <td><%= link_to 'Edit', edit_reservation_path(reservation) %></td>
    <td><%= link_to 'Destroy', reservation, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>


